package Util;

import java.awt.*;
import java.util.HashMap;
import Enum.ClickEnums;

public class ClickNumbersDispatcher {

    public static final HashMap<ClickEnums, AbstractClickNumber> CLICK_TYPE = new HashMap<>();

    private ClickNumbersDispatcher() {
        init();
    }

    private void init() {
        AbstractClickNumber airDroid = new AirDroidClickPoint();
//        AbstractClickNumber b = new AbstractClickNumber();

        CLICK_TYPE.put(ClickEnums.AIR_DROID, airDroid);
    }

    public AbstractClickNumber getClickNumber(ClickEnums click) {
        return CLICK_TYPE.get(click);
    }

    public static class DispatcherHolder {
        private static final ClickNumbersDispatcher CLICK_NUMBERS_DISPATCHER = new ClickNumbersDispatcher();

        public static ClickNumbersDispatcher getInstance() {
            return CLICK_NUMBERS_DISPATCHER;
        }
    }
}
